home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / abatvw2.zip / ATXTFILE.BAT < prev    next >
DOS Batch File  |  1994-07-08  |  5KB  |  126 lines

  1. @ECHO OFF
  2. echo off
  3. AMSG +27 15 113 206 "HOW TO USE ASCII TEXT FILES WITH ABATMENU, AMSG AND AECHO"
  4. ACLS +31
  5. AECHO /@205:75
  6. ECHO Typing long option lists to create large menus and
  7. ECHO message prompts can quickly become impractical and cumbersome.
  8. AECHO /@196:32
  9. ECHO Since....
  10. ECHO DOS only allows 127 characters on the command line and you may
  11. ECHO want to create multiple or nested menus and message prompts,
  12. ECHO AMSG and ABATMENU allow you to store option lists in text files.
  13. AECHO /@196:32
  14. ECHO You specify the text file that the utility program will reference
  15. ECHO by passing its COMPLETE name including the extension as the
  16. ECHO FIRST and ONLY option on the command line.
  17. AECHO /@196:32
  18. ECHO Like this........ABATMENU MyMenu.txt
  19. ECHO or
  20. ECHO AMSG MyMessage.txt
  21. AECHO /@196:32
  22. ECHO If the text file is not in the working directory
  23. ECHO you will need to provide a complete path with the file name.
  24. AECHO /@196:32
  25. ECHO To pass a path name.....ABATMENU C:\textfiles\MyMenu.txt
  26. AECHO /@196:32
  27. AMSCROLL /pauz +27 26 A
  28. ACLS /hz +11
  29. AECHO /@205:75
  30. ECHO To make text files for use with Abatmenu or Amsg create a
  31. ECHO STRAIGHT ASCII text file with each option on a seperate line.
  32. ECHO /@196:32
  33. ECHO This way.....
  34. ECHO +49
  35. ECHO 15
  36. ECHO 116
  37. ECHO 123
  38. ECHO 224
  39. ECHO * Text Menu *
  40. ECHO 1. Choose One
  41. ECHO 2. Choose Two
  42. ECHO 3. Choose Three
  43. ECHO 4. Choose Four
  44. ECHO 5. Exit
  45. ECHO *******************
  46. ECHO Abatmenu and Amsg use the the new line to separate each option
  47. ECHO so you don't need to place quotation marks around arguments
  48. ECHO containing more than one word in text files.
  49. AECHO /@196:32
  50. AMSCROLL /pauz +27 26 A
  51. ACLS /vt +95
  52. AECHO /@205:75
  53. ECHO You can store one, some, or all of your option lists in a
  54. ECHO text file by using Labels.
  55. AECHO /@196:32
  56. ECHO A Label is a word or set of characters preceeded by the @ character.
  57. ECHO Examples: @Stereotype @Democrat @Republican @Perotian @etc..
  58. ECHO You can then reference your options using the label.
  59. AECHO /@196:32
  60. ECHO "ABATMENU "MyMenu.txt @Computer_Geeks"
  61. AECHO /@196:32
  62. ECHO You need to enclose the text file and label names with quotes
  63. ECHO so the program will associate the label with the file name.
  64. ECHO Place the labels in your text file at the beginning of an
  65. ECHO option set to reference it. You don't need a label for
  66. ECHO the FIRST option set in a file, just use the file name.
  67. AECHO /@196:32
  68. AECHO "Insert labels like this......"
  69. AECHO "(first option set)"
  70. AECHO @alabel
  71. AECHO "(second option set)"
  72. AECHO @anotherlabel
  73. AECHO "(last option set )"
  74. AECHO @thirdlabel
  75. AECHO /@196:32
  76. AMSCROLL /pauz +80 26 A
  77. ACLS /in +79
  78. AECHO /@205:75
  79. AECHO "Be careful not to use the same text file to store options for"
  80. AECHO "different programs, because the number of arguments passed to"
  81. AECHO "each utility is not congruent. If you do, you may get some"
  82. AECHO "unexpected results."
  83. AECHO /@196:32
  84. AECHO "Here's a few more examples."
  85. AECHO /@196:32
  86. AECHO "ABATMENU options.txt"
  87. AECHO AMSG /@34 "options.txt @firstlabel" /@34
  88. AECHO ABATMENU /@34 "options.txt @secondlabel" /@34
  89. AECHO AMSG /@34 "options.txt @lastlabel" /@34
  90. AECHO /@196:32
  91. AECHO "That's all there is to it."
  92. AECHO "Abatmenu isn't case sensitive about file and label names"
  93. AECHO "so you don't have to remember if you used capital letters."
  94. AECHO "By using text files to store your options you can easily"
  95. AECHO "modify or experiment with different menus and message prompts."
  96. AECHO /@196:32
  97. AECHO "By the way, if you're wondering how to make the @ character"
  98. AECHO "Press the SHIFT and number 2 key at the same time."
  99. AECHO /@196:32
  100. AMSCROLL /pauz +116 26 A
  101. ACLS +48 /blko
  102. AECHO /@205:75
  103. AECHO "TEXT FILES WITH AECHO"
  104. AECHO /@196:70
  105. AECHO "AECHO may be used to display ASCII Text files in a fashion"
  106. AECHO "very similiar to the DOS MORE command. There are some inherent"
  107. AECHO "advantages in using AECHO such as the ability to embed control"
  108. AECHO "characters for each line of text. This allows you to display"
  109. AECHO "multicolor text and graphic characters, unavailable with the
  110. AECHO "DOS counterpart."
  111. AECHO /@196:70
  112. AECHO "The format for using text files is Aecho /t (Path)textfile"
  113. AECHO "There are no labels when using text files with Aecho."
  114. AECHO /@196:32
  115. AECHO "You can use overriding attributes and positioning options"
  116. AECHO "in front of the text file option and name to provide"
  117. AECHO "defaults when displaying the text file. As stated above,"
  118. AECHO "options may then also be embeded for control of each line"
  119. AECHO "of the text file. Display pausing is automatic."
  120. AECHO /@196:32
  121. AECHO "Text file use can greatly expand the capabilities of each of"
  122. AECHO "mentioned programs. Please, refer to the manual if any of the"
  123. AECHO "topics covered here are still unclear."
  124. AMSCROLL /pauz +63 26 A
  125.  
  126.